package com.skstudio.report;

import java.util.ArrayList;

public class ReportWifiConn extends ReportBase {
	public static class DataWifi {
		public long mLevel;
		
		public void Read(byte[] buffer, int offset) {
			mLevel = getCxxUnsignedLong(buffer, offset + 0);
		}
		
		public float getLevel() {
			return mLevel;
		}
	}

	public ArrayList < DataWifi > mDataList = new ArrayList < DataWifi > ();

	@Override
	public void parse(byte[] buffer, int offset)
	{
		DataWifi dc = new DataWifi();
		dc.Read(buffer, offset);
		if (mDataList.size() == getMaxQueueSize()) {
			mDataList.remove(0);
		}
		mDataList.add(dc);	
		//Log.v("DataWifi", "Level " + dc.mLevel);
	}
	
	@Override
	public void reset() {
		mDataList.clear();
	}
}
